/**
 * 这里是uni-app内置的常用样式变量
 *
 * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量
 * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App
 *
 */

/**
 * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能
 *
 * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件
 */

@import 'uview-ui/theme.scss';

/* 颜色变量 */
$theme-color: #E61163;
$link-color: #4E7AFF;
$theme-orange-color: #E50808;
$price-color: #EF0606;

/* 行为相关颜色 */
$uni-color-primary: #624EFF;
$uni-color-success: #4cd964;
$uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d;

/* 文字基本颜色 */
$uni-text-color:#333;//基本色
$uni-text-color-inverse:#fff;//反色
$uni-text-color-grey:#666666;//辅助灰色，如加载更多的提示信息
$uni-text-color-placeholder: #808080;
$uni-text-color-disable: #999999;

/* 背景颜色 */
$uni-bg-color-white:#ffffff;
$uni-bg-color-grey:#f8f8f8;
$uni-bg-color-hover:#f1f1f1;//点击状态颜色
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色

/* 边框颜色 */
$uni-border-color:#f4f4f4;

/* 尺寸变量 */

/* 文字尺寸 */
$uni-font-size-xm: 20upx;
$uni-font-size-sm: 24upx;
$uni-font-size-base: 28upx;
$uni-font-size-lg: 32upx;

$uni-line-height-xm: 28upx;
$uni-line-height-sm: 32upx;
$uni-line-height-base: 36upx;
$uni-line-height-lg: 40upx;

/* 图片尺寸 */
$uni-img-size-sm:40upx;
$uni-img-size-base:52upx;
$uni-img-size-lg:80upx;

/* Border Radius */
$uni-border-radius-sm: 4upx;
$uni-border-radius-base: 6upx;
$uni-border-radius-lg: 12upx;
$uni-border-radius-circle: 50%;

/* 水平间距 */
$uni-spacing-row-sm: 10px;
$uni-spacing-row-base: 20upx;
$uni-spacing-row-lg: 30upx;

/* 垂直间距 */
$uni-spacing-col-sm: 8upx;
$uni-spacing-col-base: 16upx;
$uni-spacing-col-lg: 24upx;

/* 透明度 */
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度

/* 文章场景相关 */
$uni-color-title: #2C405A; // 文章标题颜色
$uni-font-size-title:40upx;
$uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle:36upx;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:30upx;



@each $direction in left, right, top, bottom {
    .padding-#{$direction}-20 {
        padding-#{$direction}: $uni-spacing-row-base;
    }
    .margin-#{$direction}-20 {
        margin-#{$direction}: $uni-spacing-row-base;
    }   
}

@each $border in left, right, top, bottom {
    .border-#{$border} {
        border-#{$border}: 2upx solid $uni-border-color;
    }
    .margin-#{$border} {
        border-#{$border}: 2upx solid $uni-border-color;
    }
    
  }


.uni-white-bg {
    background: $uni-bg-color-white;
}

button[disabled] {
    background: $uni-text-color-disable!important;
    color: $uni-text-color-inverse;
    font-size: $uni-font-size-lg;
}

.uni-text-color {
    color: $uni-text-color;//基本色
}
.uni-text-color-inverse {
    color: $uni-text-color-inverse;
}
.uni-text-color-grey {
    color: $uni-text-color-grey;
}
.uni-font-size-sm {
    font-size: $uni-font-size-sm;
	line-height: $uni-line-height-sm;
}
.uni-font-size-base {
    font-size: $uni-font-size-base;
	line-height: $uni-line-height-base;
}
.uni-font-size-lg {
    font-size: $uni-font-size-lg;
    line-height: $uni-line-height-lg;
    
}
.uni-font-size-xm {
    font-size: $uni-font-size-xm;
	line-height: $uni-line-height-xm;
}

.uni-btn-size-lg {
    width:672upx;
    height:92upx;
    line-height: 92upx;
    border-radius:4upx;
    font-size: $uni-font-size-lg;
    margin: 0 auto;
    color: $uni-text-color-inverse;
    box-shadow:0px 6px 12px rgba(98,78,255,0.24);
    border-radius: 12upx;
}
.uni-btn-size-sm {
    display: inline-block;
    line-height: 60upx;
    height: 60upx;
    padding: 0upx 20upx;
    font-size: $uni-font-size-base;
    color: $uni-text-color-inverse;
    vertical-align: center;
    box-shadow:0px 6px 12px rgba(98,78,255,0.24);
    border-radius: 12upx;
}

.uni-btn-radius {
    border-radius:46upx;
}

.uni-bg-color-primary {
    background-color: $uni-color-primary;
    color: $uni-text-color-inverse;
}

.button-hover, .navigator-hover {
    color: rgba(0,0,0, 0.6);
    background-color: #dedede;
}

.uni-bg-color-opacity {
    background-color: transparent;
    border: 2upx solid $uni-color-primary;
    color: $uni-color-primary;
}

.link-color {
    color: $link-color!important;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; 
}
.ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box!important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box!important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.overflow {
    overflow: hidden;
}

.flex-1 {
    flex: 1;
}
.flex {
    display: -webkit-box; /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box; /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox; /* 混合版本语法: IE 10 */
    display: -webkit-flex; /* 新版本语法: Chrome 21+ */
    display: flex; /* 新版本语法: Opera 12.1, Firefox 22+ */
}

.flex-vertical {
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.flex-align-center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.flex-align-start {
    -webkit-box-align: start;
    -webkit-align-items: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.flex-align-end {
    -webkit-box-align: end;
    -webkit-align-items: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-justify-center {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.flex-justify-start {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.flex-justify-end {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: start;
    justify-content: flex-end;
}

.flex-justify-between {
    -webkit-box-pack: center;
    -webkit-justify-content: space-between;
    -ms-flex-pack: center;
    justify-content: space-between;
}

.flex-justify-around {
    -webkit-box-pack: justify;
    -webkit-justify-content: space-around;
    -ms-flex-pack: justify;
    justify-content: space-around;
}

.text-left {
    text-align: left!important;
}
.text-right {
    text-align: right!important;
}
.text-center {
    text-align: center!important;
}
.font-weight {
    font-weight: 700;
}
uni-button {
	padding: 0;
	margin: 0;
	line-height: unset;
	background: none;
}
uni-button:after{
	width: 0;
	height: 0;
	border: none;
}

.no-more {
    padding: 20upx 0;
    font-size: 28upx;
    color: $uni-text-color-grey;
}

.nav-btn {
    position: fixed;
    right: 20upx;
    top: 15px;
    z-index: 99999;
    box-sizing: border-box;
    font-size: $uni-font-size-base;
}

.uni-input-placeholder {
	color: #999;
}
.uni-textarea-placeholder {
	color: #999;
}

uni-modal .uni-modal__title {
    line-height: 36px;
}

uni-page-head .uni-page-head-ft {
    margin: 0 4px;
}

uni-page-head .uni-page-head {
    border-bottom: 2upx solid #F2F2F2;
}
uni-modal .uni-modal__bd {
    padding: 0.5em 1em 1.3em;
}

::-webkit-scrollbar { width:0;height:0px; display: none; }
::-webkit-scrollbar-thumb {
    opacity: 1.5;
}